package day26;

import java.util.Arrays;

public class TestClass {
    String name;
    String str[]=new String[5];

    public TestClass(){
        System.out.println("调用了无参构造！");
    };
    private TestClass(String name){
        this.name=name;
        System.out.println("调用了有参构造！");
        System.out.println(name+"在睡觉");
    }
    public void shuzu(String str[]){
        System.out.println(Arrays.toString(str));
    }

}
